package com.lagou.module2.task3.card;

/**
 * 用户消费信息类
 * 模拟用户消费信息
 */
public class UserInfo {

    // 统计通话时长
    private int callDuration;
    // 统计上网流量(MB)
    private int mobileInternetData;
    // 每月消费金额
    private int monthlyCharges;

    //无参构造方法
    public UserInfo(){}

    //带参构造
    public UserInfo(int callDuration, int mobileInternetData, int monthlyCharges){
        setCallDuration(callDuration);
        setMobileInternetData(mobileInternetData);
        setMonthlyCharges(monthlyCharges);
    }

    // getter and setter


    public int getCallDuration() {
        return callDuration;
    }

    public void setCallDuration(int callDuration) {
        this.callDuration = callDuration;
    }

    public int getMobileInternetData() {
        return mobileInternetData;
    }

    public void setMobileInternetData(int mobileInternetData) {
        this.mobileInternetData = mobileInternetData;
    }

    public int getMonthlyCharges() {
        return monthlyCharges;
    }

    public void setMonthlyCharges(int monthlyCharges) {
        this.monthlyCharges = monthlyCharges;
    }
}
